Can't select file on file browser after changing sort order
authorBenjamin Otte <otte@redhat.com>
Wed, 16 Jun 2010 10:41:40 +0000 (12:41 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 28 Jun 2010 12:19:18 +0000 (14:19 +0200)
The row values are 1-indexed not 0-indexed, this has to be taken into
account when producing the new_order array.

https://bugzilla.gnome.org/show_bug.cgi?id=621414

gtk/gtkfilesystemmodel.c

index 738b06156379d7ef60eee91554b84fc3c47f19d1..7c9e1dca0f51f7141476853cbf6794b7eb2563b7 100644 (file)
@@ -739,7 +739,7 @@ gtk_file_system_model_sort (GtkFileSystemModel *model)
                   continue;
                 }
 
-              new_order[r] = node->row;
+              new_order[r] = node->row - 1;
               r++;
               node->row = r;
             }